package com.business.business.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.business.business.common.base.BasisEntity;

import java.util.Date;

//@Data
@TableName("permissions")//权限表
public class Permissions extends BasisEntity {

    private String id;//主键id
    private String name;//名称
    private String pid;//父级id
    private Integer sortid;//排序字段
    private Date createtime;//创建时间


    public String getId() {
        return this.getString("id");
    }

    public void setId(String id) {
        this.put("id",id);
    }

    public String getName() {
        return this.getString("name");
    }

    public void setName(String name) {
        this.put("name",name);
    }

    public String getPid() {
        return this.getString("pid");
    }

    public void setPid(String pid) {
        this.put("pid",pid);
    }

    public Integer getSortid() {
        return this.getInteger("sortid");
    }

    public void setSortid(Integer sortid) {
        this.put("sortid",sortid);
    }

    public Date getCreatetime() {
        return this.getDate("createtime");
    }

    public void setCreatetime(Date createtime) {
        this.put("createtime",createtime);
    }
}
